package com.gk.carshopsys.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.gk.carshopsys.utils.CarOrderConverter;
import com.gk.carshopsys.utils.EmpConverter;

import java.sql.Date;
import java.util.List;

public class AfterOrder {
    @ExcelIgnore
    private Long id;
    @ExcelIgnore
    private Long carid;
    @ExcelProperty(value = "售后订单号",index =0 )
    private String afterordernum;
    @ExcelProperty(value = "车牌号",index = 2)
    private String carno;
    @ExcelProperty(value = "服务内容",index = 4)
    private String service;
    @ExcelProperty(value = "价格",index = 5)
    private Integer price;
    @ExcelIgnore
    private Integer empid;
    @ExcelProperty(value = "状态",index = 8)
    private String state;
    @ExcelProperty(value = "创建时间",index = 6)
    private String create_time;
    @ExcelProperty(value = "更新时间",index = 7)
    private String update_time;
    @ExcelProperty(value = "备注",index = 9)
    private String afterremarks;
    @ExcelProperty(value = "汽车订单号",index = 1,converter = CarOrderConverter.class)
    private CarOrder carorder;
    @ExcelProperty(value = "办理人",index = 3,converter = EmpConverter.class)
    private Emp emp;

    public AfterOrder() {
    }

    public AfterOrder(Long id, Long carid, String afterordernum, String carno, String service, Integer price, Integer empid, String state, String create_time, String update_time, String afterremarks, CarOrder carorder, Emp emp) {
        this.id = id;
        this.carid = carid;
        this.afterordernum = afterordernum;
        this.carno = carno;
        this.service = service;
        this.price = price;
        this.empid = empid;
        this.state = state;
        this.create_time = create_time;
        this.update_time = update_time;
        this.afterremarks = afterremarks;
        this.carorder = carorder;
        this.emp = emp;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCarid() {
        return carid;
    }

    public void setCarid(Long carid) {
        this.carid = carid;
    }

    public String getAfterordernum() {
        return afterordernum;
    }

    public void setAfterordernum(String afterordernum) {
        this.afterordernum = afterordernum;
    }

    public String getCarno() {
        return carno;
    }

    public void setCarno(String carno) {
        this.carno = carno;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getEmpid() {
        return empid;
    }

    public void setEmpid(Integer empid) {
        this.empid = empid;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getAfterremarks() {
        return afterremarks;
    }

    public void setAfterremarks(String afterremarks) {
        this.afterremarks = afterremarks;
    }

    public CarOrder getCarorder() {
        return carorder;
    }

    public void setCarorder(CarOrder carorder) {
        this.carorder = carorder;
    }

    public Emp getEmp() {
        return emp;
    }

    public void setEmp(Emp emp) {
        this.emp = emp;
    }

    @Override
    public String toString() {
        return "AfterOrder{" +
                "id=" + id +
                ", carid=" + carid +
                ", afterordernum='" + afterordernum + '\'' +
                ", carno='" + carno + '\'' +
                ", service='" + service + '\'' +
                ", price=" + price +
                ", empid=" + empid +
                ", state='" + state + '\'' +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", afterremarks='" + afterremarks + '\'' +
                ", carorder=" + carorder +
                ", emp=" + emp +
                '}';
    }
}
